<template >
  <el-menu-item
    :index="item.meta.index"
    :route="{ path: parentPath ? parentPath + '/' + item.path : item.path }"
    v-if="
      (!item.children || item.children.length === 0) &&
      !item.redirect &&
      item.meta.isShow
    "
  >
    <i :class="item.meta.icon"></i>
    <span slot="title">{{ $t(item.meta.title) }}</span>
  </el-menu-item>
</template>
<script>
export default {
  props: ["item", "parentPath"],
};
</script>
<style >
</style>